package db4o;


import pojo.EUserType;
import pojo.User;

/**
 * @author Grzegorz
 * 
 */
public class UserCreator extends DBManager {

	public void userPersist(User u) {
		super.getDbManager().store(u);
	}

	public void userPersist(String firstName, String lastName, String email,
			String password) {
		super.getDbManager().store(
				new User(firstName, lastName, password, email));
	}

	public void userPersist(String firstName, String lastName, String email,
			String password, Integer phoneNumber, EUserType type) {
		super.getDbManager().store(
				new User(firstName, lastName, password, email, type,
						phoneNumber));
	}



public static void main(String args[]) {
		
		UserRetriever ur = new UserRetriever();
		System.out.println(ur.fetchUser("frank123@gmail.com"));
		System.out.println(ur.getAllUsers());
		// System.out.println(user);

	}
}
